package com.nancy.aop.aop.cglib;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * All rights Reserved, Designed By guangfeng.zhou
 *
 * @version V1.0
 * @Project: learning-demo
 * @Package: com.nancy.aop.cglib
 * @Description: (用一句话描述该文件做什么)
 * @author: guangfeng.zhou
 * @date: 2017/12/5 12:12
 */
public class CglibPojo {
    private Logger log = LoggerFactory.getLogger(getClass()) ;


    public void printMsgPrivate(){
        System.out.println("static method can not use cglib proxy");
    }

    public void printMsgPublic(String msg){
        log.info("printMsgPublic method can use cglib proxy");
    }

    public void noMsgPublic(String msg){
        log.info("noMsgPublic method can use cglib proxy");
    }

    public int getConcreteMethodFixedValue(int n){
        System.out.println(n+"getConcreteMethodFixedValue...");
        return n+10;
    }
}
